package com.log.enhance.annotation;

import com.log.enhance.config.EnableLogChainConfiguration;
import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 开启日志拦截器、feign调用拦截器，使用@Import注解向容器中导入拦截器组件
 *
 * @author Mr_wenpan@163.com 2021/05/30 23:19
 */
@Documented
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import(EnableLogChainConfiguration.class)
public @interface EnableLogChain {

    AdviceMode mode() default AdviceMode.PROXY;

}
